package com.flying.doublecode;

import java.util.Arrays;

/**
 * @author 刘鹏飞
 * @Classname Test01
 * @Date 2024/12/17 12:29
 * @Created by 刘鹏飞
 * @Description
 */
public class Test01 {
    public static void main(String[] args) {

        // 方式1: 静态初始化
        Object[][] objects = {
            {1001,"高琪",18,"程序员",30000,5000},
            {1002,"高小二",19,"讲 师",36000,2000},
            {1003,"高琪",20,"教 授",27000,3000},
        };


        //方式2:动态初始化

        Object[][] object1=new Object[3][];
        object1[0]= new Object[]{1001, "高琪", 18, "程序员", 30000, 5000};
        object1[1]= new Object[]{1002,"高小二",19,"讲 师",36000,2000};
        object1[2]= new Object[]{1003,"高琪",20,"教 授",27000,3000};

        System.out.println(Arrays.toString(objects));
        System.out.println(Arrays.toString(object1));

    }

}
